package com.jwsoft.manager.core.dao.mapper;

import com.jwsoft.manager.core.dao.model.EduHouseDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwsoft.manager.core.dao.model.EduhHouseDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wangtao
 * @since 2022-12-01
 */
@Mapper
public interface EduHouseDetailMapper extends BaseMapper<EduHouseDetail> {

    Integer selectCountByYear(@Param("year") Integer year);

    List<EduHouseDetail> selectByYear(@Param("year") Integer year, @Param("pageSize")Integer pageSize);

    Integer deleteByTaskHistory(@Param("taskDetailId") String taskDetailId);

    Integer selectEncryptionCountByYear(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId);

    List<EduhHouseDetail> selectEncryptionByYear(@Param("year") Integer year, @Param("taskDetailId") String taskDetailId, @Param("pageSize") Integer pageSize);

    List<EduhHouseDetail> queryCleanData(@Param("taskDetailId") String taskDetailId, @Param("year") Integer year);
}
